package online.longzipeng.householdbillssystem.business.vo.bill;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "账单类型新增对象",description = "请求参数类")
public class BillTypeSaveVO {

    @ApiModelProperty(value = "类型名称",example = "生活",required = true)
    @NotBlank(message = "类型名称不能为空！")
    private String name;

    @ApiModelProperty(value = "支付类型",example = "true-支出、false-收入",required = true)
    @NotNull(message = "支付类型不能为空！")
    private Boolean payType;

    @ApiModelProperty(value = "对象的类型图标路径",example = "http://xxxx/xxx.jpg",required = false)
    private String imgUrl;

    @ApiModelProperty(value = "创建者的用户id，如果为默认类型则id为0",example = "0",required = true)
    @Min(0)
    private Integer userId;

}